-
Notifications
You must be signed in to change notification settings - Fork 6
Handle unsupported Waveforms with warning messages #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
9670f5d to
9cef711
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #316 +/- ##
==========================================
+ Coverage 90.82% 90.84% +0.01%
==========================================
Files 70 70
Lines 2551 2555 +4
==========================================
+ Hits 2317 2321 +4
Misses 234 234 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9cef711 to
3da087c
Compare
📝 WalkthroughWalkthroughEPICS CA IOC now skips Waveform attributes with dimensionality >1 (logs a warning) and computes PV names only after this check. Some print statements were replaced with logger.warning. A unit test was added to assert only 1D Waveforms produce PV creation calls. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Comment |
3da087c to
826647e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/fastcs/transports/epics/ca/ioc.py`:
- Around line 135-143: The current guard only skips Waveform attributes with
len(attribute.datatype.shape) > 1 and doesn’t mark them disabled; change the
condition to treat any non‑1D waveform as unsupported by using
len(attribute.datatype.shape) != 1, and when that condition matches set
attribute.enabled = False before continuing; keep the logger.warning call (e.g.,
the existing logger.warning message about 1D Waveform attributes) so the
behavior in this EPICS CA transport branch is consistent with other skip paths
(refer to Waveform, attribute.enabled, and logger.warning in the ioc handling
code).
826647e to
5402183
Compare
ajgdls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not directly related to this change, but there are some print statements that should probably be updated to log messages.
Update other related checks to use logger.warning
5402183 to
2a9cf2f
Compare
Summary by CodeRabbit
Bug Fixes
Tests